package cn.jiyun.ware.controller;

import cn.jiyun.ware.service.WareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ware")
public class WareController {
    @Autowired
    private WareService wareService;
    @RequestMapping("/add")
    public String add(Integer sid,Integer num){
        wareService.add(sid,num);
        return "添加成功";
    }
}
